package com.itheima.model.behavior.dtos;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Map;

/**
 * 行为数据传输对象
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "行为数据传输对象")
public class BehaviorDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("行为类型：page_view/book_view/reading_start/reading_end/search/like/collect")
    private String behaviorType;

    @ApiModelProperty("目标类型：book/note/review")
    private String targetType;

    @ApiModelProperty("目标ID")
    private String targetId;

    @ApiModelProperty("持续时长（秒）")
    private Integer duration;

    @ApiModelProperty("扩展数据")
    private Map<String, Object> extraData;
}

